Strange iotcl operation
Hi,all
I'm using FC5, our graphic card's framebuffer driver's ioctl function work abnormally.I mean
our framebuffer driver provide extending ioctl command. But the ioctl cmd can't be transport correctly from user space to kernel space, ie,if I ioctl(fd,0x123456,&arg) in user space, the kernel space can not get the cmd 0x12345, but a totally different number. But if I use standard cmd such as FBIOGET_VSCREENINFO, it work normally.
By the way, My framebuffer driver work on FC4
Any Suggestion is appreciate.
All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Linux-fbdev-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-fbdev-devel
Quoted 7 lines · twomol
Hi,all
I'm using FC5, our graphic card's framebuffer driver's ioctl function work abnormally.I mean
our framebuffer driver provide extending ioctl command. But the ioctl cmd can't be transport correctly from user space to kernel space, ie,if Iioctl(fd,0x123456,&arg)in user space, the kernel space can not get the cmd0x12345, but a totally different number.
You can't just use any number, be sure to use the 'F' (0x46) identifier for framebuffer devices. See also Documentation/ioctl-number.txt.
Also, look at drivers that has their own ioctl's for help, such as matroxfb (drivers/video/matrox/matroxfb_base.c).
Tony
All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Linux-fbdev-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-fbdev-devel